﻿using TipokHostManager.Model;

namespace TipokHostManager
{
    class MasterEnviorment
    {

        private static Deployment _deployment = null;
        private static bool _runAsConsole;
        private static object _syncRoot = new object();

        public static void Initialize(bool runAsConsole)
        {
            _runAsConsole = runAsConsole;
            _deployment = new Deployment();
            _deployment.MaxAllowMemory = 0xfa00;
            _deployment.MaxWorkHours = 0x120;
        }

        public static Deployment Deployment
        {
            get
            {
                return _deployment;
            }
        }

        public static bool RunAsConsole
        {
            get
            {
                return _runAsConsole;
            }
        }
    }
}
